//
//  ImageTableViewCell.m
//  Focus
//
//  Created by 楼主 on 14-11-7.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ImageTableViewCell.h"

@implementation ImageTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        UILabel *titleLabel = [[UILabel alloc]init];
        self.titleLabel = titleLabel;
        [titleLabel release];
        [self.contentView addSubview:self.titleLabel];
        
        UIImageView *myImageView = [[UIImageView alloc]init];
        self.myImageView = myImageView;
        [myImageView release];
        [self.contentView addSubview:self.myImageView];
        
        UILabel *authLabel = [[UILabel alloc]init];
        self.authLabel = authLabel;
        [authLabel release];
        [self.contentView addSubview:self.authLabel];
        
    }
    return self;
}

- (void)dealloc
{
    [super dealloc];
    [_authLabel release];
    [_myImageView release];
    [_titleLabel release];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.titleLabel.frame = CGRectMake(0, 0, 320, 40);
    self.myImageView.frame = CGRectMake(0, 40, 320, self.webHight / 2);
    self.authLabel.frame = CGRectMake(0, self.webHight / 2 + 40, 320, 40);
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
